import request from '@/utils/request'

// 查询产品工艺明细列表
export function listProductTechDetail(query) {
  return request({
    url: '/production/productTechDetail/list',
    method: 'get',
    params: query
  })
}

// 查询产品工艺明细详细
export function getProductTechDetail(rowId) {
  return request({
    url: '/production/productTechDetail/' + rowId,
    method: 'get'
  })
}

// 新增产品工艺明细
export function addProductTechDetail(data) {
  return request({
    url: '/production/productTechDetail',
    method: 'post',
    data: data
  })
}

// 修改产品工艺明细
export function updateProductTechDetail(data) {
  return request({
    url: '/production/productTechDetail',
    method: 'put',
    data: data
  })
}

// 删除产品工艺明细
export function delProductTechDetail(rowId) {
  return request({
    url: '/production/productTechDetail/' + rowId,
    method: 'delete'
  })
}

// 导出产品工艺明细
export function exportProductTechDetail(query) {
  return request({
    url: '/production/productTechDetail/export',
    method: 'get',
    params: query
  })
}